import Vue from '/node_modules/vue/dist/vue';
import $ from 'jquery';
import VueRouter from 'vue-router';
import Toast from 'cube-ui/lib/toast/toast.min'
import WxShare from '../modules/wxShare';
import flexible from 'amfe-flexible';

import vue_index from '/component/index.vue';
import vue_cities from '/component/cities.vue';
import vue_over from '/component/over.vue';
import vue_rules from '/component/rules.vue';
import vue_winners from '/component/winners.vue';
import vue_call from '/component/call.vue';


let __share=new WxShare();
__share.init();
Vue.use(Toast);
Vue.use(VueRouter);
const routes = [
  { path: '/', component: vue_index,meta:{title:"首页"} },
  { path: '/cities', component: vue_cities,meta:{title:"选择省市"} },
  { path: '/over', component: vue_over,meta:{title:"活动结束"} },
  { path: '/my_city/:cityCode', component: vue_call,meta:{title:"打call"} ,props:true},
  { path: '/my_city/:cityCode/:popStatus', component: vue_call,meta:{title:"打call"} ,props:true},
  { path: '/rules', component: vue_rules,meta:{title:"规则"} },
  { path: '/winners', component: vue_winners,meta:{title:"中奖公告"} },
]
const router = new VueRouter({
  routes // （缩写）相当于 routes: routes
});

window.$=$;
window.bus=new Vue({});
const vueBox = new Vue({
  el:"#app",
  router
})


